package togoogle;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class productinfo {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private String productid;
    @Persistent
    private String productname;
    @Persistent
    private String acctid;
    @Persistent
    private double click;
    @Persistent
    private Date modifytime;

    public productinfo(String productid, String productname, String acctid, Date modifytime) {
        this.productid = productid;
        this.productname = productname;
    	this.acctid = acctid;
        this.click = 0.0;
        this.modifytime = modifytime;
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public String getProductId() {
    	return productid;
    }
    public String getProductName(){
    	return productname;
    }
    public String getAcctId() {
        return acctid;
    }

    public double getClick() {
        return click;
    }

    public Date getModifyTime() {
        return modifytime;
    }

    public void setProductId(String productid) {
        this.productid = productid;
    }
    
    public void setProductName(String productname){
    	this.productname = productname;
    }
    public void setAcctId(String acctid) {
        this.acctid = acctid;
    }

    public void setClick(double click) {
    	this.click = click;
    }
    public void setModifyTime(Date modifytime) {
    	this.modifytime = modifytime;
    }
}